#!/usr/bin/expect -f
set user kamasamikon
set host 106.75.60.10
set password 800bb->BP  
set timeout -1

spawn ssh $user@$host
# expect "*yes/no*"
# send "yes\r"
# expect "*assword:*"
# send "$password\r"
# interact

expect {
	"*yes/no*" {send "yes\r";exp_continue}
	"*assword:*" {send "$password\r"}
}
# expect "]#"
interact
expect eof
